import request from '@/utils/request'

// 查询三级机构信息列表
export function listOrgThird(query) {
  return request({
    url: '/labdata/orgThird/list',
    method: 'get',
    params: query
  })
}

// 查询三级机构信息详细
export function getOrgThird(labId) {
  return request({
    url: '/labdata/orgThird/' + labId,
    method: 'get'
  })
}

// 新增三级机构信息
export function addOrgThird(data) {
  return request({
    url: '/labdata/orgThird',
    method: 'post',
    data: data
  })
}

// 修改三级机构信息
export function updateOrgThird(data) {
  return request({
    url: '/labdata/orgThird',
    method: 'put',
    data: data
  })
}

// 删除三级机构信息
export function delOrgThird(labId) {
  return request({
    url: '/labdata/orgThird/' + labId,
    method: 'delete'
  })
}

// 导出三级机构信息
export function exportOrgThird(query) {
  return request({
    url: '/labdata/orgThird/export',
    method: 'get',
    params: query
  })
}